package com.yue.rpc;

import com.yue.rpc.annotation.RpcScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author zhangqiyue
 * @Description
 * @Date 2023/3/6 17:25
 */
@RpcScan(basePackage = "com.yue.rpc")
public class NettyClientMain {
    public static void main(String[] args) throws InterruptedException {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyClientMain.class);
        RpcController rpcController = (RpcController) applicationContext.getBean("rpcController");
        rpcController.test();
    }
}
